<?php

class GaAPI_Objects_Campaign_Budget {

    public $period;
    public $amount;
    public $deliveryMethod;

    public function setAmount($microAmout = null, $currencyCode = null) {
        GaAPI_Autoloader::instance()->load('GaAPI_Objects_Amount');
        $this->amount = new GaAPI_Objects_Amount($microAmout, $currencyCode);
        return $this;
    }


    public function  __toString() {
        $xml = '';
        $xml .= '<period>' . $this->period . '</period>';
        $xml .= '<amount>' . $this->amount . '</amount>';
        $xml .= '<deliveryMethod>' . $this->deliveryMethod . '</deliveryMethod>';
        return $xml;
    }

}